import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:handwrite/MainRoutePath.dart';
import 'package:handwrite/request/NetworkService.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialBinding: BindingsBuilder(() {
        Get.put(NetworkService());
      }),
      initialRoute: MainRoutePath.input,
      getPages: MainRoutePath.pages,
      builder: EasyLoading.init(),
    );
  }
}
